package com.traveldesign.common;

import lombok.Data;
import lombok.ToString;

import java.util.HashMap;

@Data

public class QueryPageParam {
    //默认
    private static  int PAGE_SIZE = 20;
    private  static  int PAGE_NUM = 1;

    private  int pageSize =PAGE_SIZE ;
    private  int pageNum =PAGE_NUM;
    private  HashMap param =new HashMap();

    public void setParam(HashMap param) {
        this.param = param;
    }

    public HashMap getParam() {
        return param;
    }

//    @Override
//    public String toString() {
//        return "QueryPageParam{" +
//                "pageSize=" + pageSize +
//                ", pageNum=" + pageNum +
//                ", param=" + param +
//                '}';
//    }


    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

}
